package cn.biplam.front.template.control.rfFlowTable.callback.content;

import cn.biplam.common.wrapper.ErrorMessage;
import cn.biplam.common.wrapper.Result;
import cn.biplam.common.wrapper.UserInfo;
import cn.biplam.front.callback.CallBack;
import cn.biplam.front.html.base.HtmlWindow;
import cn.biplam.front.template.base.Text;

/**
 *  索引列回调器<BR>
 *  返回当前行索引下标
 * @author XiaoRuxing Nov 21, 20099:01:50 PM
 * @version 1.0
 */
public class IndexColCallback implements CallBack {

	public HtmlWindow[] getGroup(Result data, String homeUrl, UserInfo user)
	throws ErrorMessage {
		HtmlWindow[] pk=new HtmlWindow[1];
		Text text=new Text(String.valueOf(data.getCurrentRow()+1));
		HtmlWindow typeDesc=text.get();
		typeDesc.setLength(text.getPxWith());
		pk[0] = typeDesc ;
		return pk;
	}
}
